package edu.rpi.tw.escience.stargazer.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import edu.rpi.tw.escience.stargazer.client.StargazerRemoteService;

import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;

public class StargazerRemoteServiceImpl extends RemoteServiceServlet implements
		StargazerRemoteService {

	public Collection<Map<String,String>> getStars(String[] UserCoordinates, String[] SkyCoordinates, String[] TimeInformation) throws Exception {
		return StarGazer.get(UserCoordinates, SkyCoordinates, TimeInformation);
	}	
	public Map<String,String> getStarByName(String name) throws Exception {
		return StarGazer.getByName(name);
	}
}
